Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add taxonomies to court listings #1936

Merged
merged 2 commits into from
Jul 29, 2024
Merged

Add taxonomies to court listings #1936

merged 2 commits into from
Jul 29, 2024

Conversation

actlikewill
Copy link
Contributor

@actlikewill actlikewill commented Jul 26, 2024

This adds taxonomies to the court listing pages
Also some small refactors to eliminate some repitition in the facets code.

image

closes https://github.com/laws-africa/kenyalaw-pj/issues/132

@actlikewill
Copy link
Contributor Author

@longhotsummer since the we are faceting on the taxonomies already on the document list, I dont think we need to limit to a particular taxonomy tree

@actlikewill actlikewill marked this pull request as ready for review July 26, 2024 11:17
@longhotsummer
Copy link
Contributor

@longhotsummer since the we are faceting on the taxonomies already on the document list, I dont think we need to limit to a particular taxonomy tree

I agree - let's go with this as it is.

@@ -105,6 +101,24 @@ def populate_facets(self, context):
"values": self.request.GET.getlist("attorneys"),
}

if "taxonomy" not in self.exclude_facets:
taxonomies = list(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you sort these alphabetically at the last minute?

@actlikewill actlikewill merged commit f519ac0 into main Jul 29, 2024
9 checks passed
@actlikewill actlikewill deleted the judgment-taxonomies branch July 29, 2024 06:58
Copy link

sentry-io bot commented Jul 29, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ InterfaceError: connection already closed /judgments/{code}/{year}/ View Issue
  • ‼️ InterfaceError: connection already closed /judgments/{code}/{year}/{month}/ View Issue
  • ‼️ InterfaceError: connection already closed /judgments/{code}/ View Issue

Did you find this useful? React with a 👍 or 👎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants